﻿@model Abhimanu.Mobile.Models.LogOnModel
@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/M/_StudentLayout.cshtml";
}
<p>
    <a data-role="button" class="no-Ajax"   style="float:right" href="@Url.Action("Register", "Account")">
        Register</a>
</p>
<br />
<br />
@using (Html.BeginForm())
{
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Student Login</li>
        <li style="font-size:11px; color:Red;">
            @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
        </li>
        <li>
            @Html.LabelFor(m => m.EmailID)
            @Html.TextBoxFor(m => m.EmailID, new { required = "required", placeHolder = "User Name" })
            @Html.ValidationMessageFor(m => m.EmailID)
        </li>
        <li>
            @Html.LabelFor(m => m.Password)
            @Html.PasswordFor(m => m.Password, new { required = "required", placeHolder = "Password" })
            @Html.ValidationMessageFor(m => m.Password)
        </li>
    </ul>
    <input type="submit" value="Log On" data-theme="a" data-form="ui-btn-up-a" />
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
